package com.mobileares.midp.widgets.client.common;

import com.google.gwt.event.logical.shared.HasSelectionHandlers;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.SimplePanel;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2011-3-17
 * Time: 10:16:32
 * To change this template use File | Settings | File Templates.
 */
public class DecorateBar extends Composite{
    private FlowPanel bar;
    private SimplePanel main;

    public DecorateBar(String style) {
        bar = new FlowPanel();
        bar.setStyleName(style);
        init();
        initWidget(bar);
    }

    private void init() {
        SimplePanel left = new SimplePanel();
         main = new SimplePanel();
        SimplePanel right = new SimplePanel();
        bar.add(left);
        bar.add(right);
        bar.add(main);
        left.setStyleName("left");
        right.setStyleName("right");
        main.setStyleName("main");

    }
    public SimplePanel getMain(){
        return main;
    }
}
